Multi-dimensional Boltzmann Sampling of context-free Languages

نویسندگان

  • Olivier Bodini
  • Yann Ponty
چکیده

This paper addresses the uniform random generation of words from a context-free language (over an alphabet of size k), while constraining every letter to a targeted frequency of occurrence. Our approach consists in an extended – multidimensional – version of the classic Boltzmann samplers [7]. We show that, under mostly strong-connectivity hypotheses, our samplers return a word of size in [(1 − ε)n, (1 + ε)n] and exact frequency in O(n) expected time. Moreover, if we accept a tolerance interval of length in Ω( √ n) for the number of occurrences of each letters, our samplers perform an approximate-size generation of words in expected O(n) time. We illustrate these techniques on the generation of Tetris tessellations with uniform statistics in the different types of tetraminoes.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Multi-dimensional Boltzmann Sampling of Languages

This paper addresses the uniform random generation of words from a context-free language (over an alphabet of size k), while constraining every letter to a targeted frequency of occurrence. Our approach consists in a multidimensional extension of Boltzmann samplers [7]. We show that, under mostly strong-connectivity hypotheses, our samplers return a word of size in [(1− ε)n, (1 + ε)n] and exact...

متن کامل

Heat Transfer Enhancement of Al2O3–H2O Nanofluid Free Convection in Two-Phase Flow with Internal Heat Generation Using Two Dimensional Lattice Boltzmann Method

A two-phase lattice Boltzmann model considering the interaction forces of nanofluid has been developed in this paper. It is applied to investigate the flow and natural convection heat transfer of Al2O3–H2O nanofluid in an enclosure containing internal heat generation. To understand the heat transfer enhancement mechanism of the nanofluid flow from the particle level, the lattice Boltzmann metho...

متن کامل

Initialization of a Lattice Boltzmann Model with Constrained Runs (Extended Version)

In this article, we perform a numerical stability and convergence analysis of the constrained runs initialization scheme for a lattice Boltzmann model. Gear and Kevrekidis developed this scheme in the context of coarse-grained equation-free computing. Given the macroscopic initial fields, we study the mapping of these variables to the higher-dimensional space of lattice Boltzmann variables. The...

متن کامل

Detecting Ambiguity in Programming Language Grammars

Ambiguous Context Free Grammars (CFGs) are problematic for programming languages, as they allow inputs to be parsed in more than one way. In this paper, we introduce a simple non-deterministic search-based approach to ambiguity detection which non-exhaustively explores a grammar in breadth for ambiguity. We also introduce two new techniques for generating random grammars – Boltzmann sampling an...

متن کامل

کاربرد و مقایسه روش های بولتزمن شبکه ای مختلف با شبکه بندی غیریکنواخت در شبیه سازی جریان در داخل میکروحفره و میکروکانال

In this study, for the first time, a comparison of single-relaxation-time, multi-relaxation-time and entropic lattice Boltzmann methods on non-uniform meshes is performed and application of these methods for simulation of two-dimensional cavity flows, channel flows and channel flows with sudden expansion is studied in the slip and near transition regimes. In this work, Taylor series expansion a...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • CoRR

دوره abs/1002.0046  شماره 

صفحات  -

تاریخ انتشار 2010